﻿<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<IPagedList<HelfenHelfen.DataAccess.Entities.BonusItem>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 <div class="projectlist">
<div class="project">
    <h2>Bonus Items</h2>
    <div id="divGrid">
        <% Html.RenderPartial("BonusItems", this.Model);  %>
    </div>
    <% if (ViewData.Model.Count > 0)
       {   
    %>
    <div class="pager">
        <%= Html.Pager(ViewData.Model.PageSize, ViewData.Model.PageNumber, ViewData.Model.TotalItemCount, "Index")%>
    </div>
    <% }  %>
    <% if (Page.User.Identity.IsAuthenticated)
       {%>
    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>
    <%} %>
    </div>
    </div>
</asp:Content>
